{% extends "tpl_admin_base.html" %}
{% block slides %}
<div id="slogancontainer" class="slides">
 	<img src="/static/images/slogan_3.png" alt="全局设置" class="left" />
 </div>
{% endblock %}
{% block nodecontent %}
<div class="article">
	{% ifnotequal success None %}
	<div class="resultmsg">{% if success %}更新成功{% else %}更新失败，请重试{% endif %}</div>
	{% endifnotequal %}
	<div class="formcontainer">
		<form method=POST action="{{request.path}}">
		{% if columns %}
			<h2>网站栏目名称设置</h2>
			{% for column in columns %}
			<div class="inputcontainer singleline">
				<span>当前名称:</span><label>{{column.title}}</label>
				<span style="position:absolute; left: 200px;">新名称:</span>
				<input type="text" size="50" name="column_{{column.key}}" value="{{column.title}}" style="position:absolute; left: 250px;"/>
			</div>
			{% endfor %}
		{% endif %}
			<h2>其他设置</h2>
			<div class="inputcontainer singleline">
				<label for="{{sitename.title}}">诊所名称：</label>
				<input type="text" size="50" name="{{sitename.title}}" value="{% ifnotequal sitename.value None %}{{sitename.value}}{% endifnotequal %}"/>
			</div>
			<div class="inputcontainer singleline">
				<label for="{{address.title}}">诊所地址：</label>
				<input type="text" size="50" name="{{address.title}}" value="{% ifnotequal address.value None %}{{address.value}}{% endifnotequal %}"/>
			</div>
			<div class="inputcontainer singleline">
				<label for="{{telephone.title}}">联系电话：</label>
				<input type="text" size="50" name="{{telephone.title}}" value="{% ifnotequal telephone.value None %}{{telephone.value}}{% endifnotequal %}"/>
			</div>
			<div class="singleline">
				<input type="submit" name="submit" value="提交"/>
			</div>
		</form>
	</div>
</div>
{% endblock %}